export default {
  data () {
    return {
      list_detailList_c: [
        { label: '型号', prop: 'material.model' },
        { label: '规格', prop: 'material.specification' },
        { label: '单位', prop: 'material.unit' },
        { label: '单价', prop: 'price', cn: 'el-input-number', size: "mini", min: 0 },
        { label: '订货数量', prop: 'quantity', cn: 'el-input-number', size: "mini", min: 0 },
        { label: '金额', prop: 'amount' },
        { label: '备注', prop: 'remark', cn: 'el-input', type: 'textarea' },
      ],
      list_order_c: [
        { label: '编号', prop: 'id' },
        { label: '客户名称', prop: 'name' },
        { label: '公司地址', prop: 'address' },
        { label: '联系人', prop: 'contact' },
        { label: '联系电话', prop: 'phone' },
        { label: '客户分类', prop: 'category' },
        { label: '信用等级', prop: 'creditLevel' },
      ],
      list_e_c: [
        { form_item_prop: { label: '客户名称', prop: 'customerName', required: true }, component_name: 'el-input', component_prop: { disabled: true } },
        { form_item_prop: { label: '交货日期', prop: 'deliveryDate', required: true }, component_name: 'el-date-picker', component_prop: { is_add: true, 'value-format': 'yyyy-MM-dd HH:mm:ss', type: 'datetime', } },
        { form_item_prop: { label: '备注', prop: 'remark', required: true }, component_name: 'el-input', component_prop: { is_add: true, type: 'textarea' } },
      ],
      list_q_c: [
        { form_item_prop: { label: '订单编号', prop: 'orderNo' }, component_name: 'el-input' },
        { form_item_prop: { label: '客户名称', prop: 'customerName' }, component_name: 'el-select', component_prop: { option_data: [], option_prop: { value: 'id', label: 'name' } } },
        { form_item_prop: { label: '交货日期', prop: 'deliveryAttr' }, component_name: 'el-date-picker', component_prop: { 'value-format': 'yyyy-MM-dd HH:mm:ss', type: 'datetimerange', 'range-separator': "至", 'start-placeholder': "开始日期", 'end-placeholder': "结束日期" } },
        { form_item_prop: { label: '申请人', prop: 'applyUser' }, component_name: 'el-select', component_prop: { option_data: [], option_prop: { value: 'id', label: 'realName' } } },
        { form_item_prop: { label: '申请日期', prop: 'applyAttr' }, component_name: 'el-date-picker', component_prop: { 'value-format': 'yyyy-MM-dd HH:mm:ss', type: 'datetimerange', 'range-separator': "至", 'start-placeholder': "开始日期", 'end-placeholder': "结束日期" } },
        { form_item_prop: { label: '申请状态', prop: 'applyStatus' }, component_name: 'el-select', component_prop: { option_data: [{ value: '未提交' }, { value: '待审核' }, { value: '已审核' },], option_prop: { value: 'value', label: 'value' } } },
        { form_item_prop: { label: '审核人', prop: 'approveUser' }, component_name: 'el-select', component_prop: { option_data: [], option_prop: { value: 'id', label: 'realName' } } },
        { form_item_prop: { label: '审核日期', prop: 'approveAttr' }, component_name: 'el-date-picker', component_prop: { 'value-format': 'yyyy-MM-dd HH:mm:ss', type: 'datetimerange', 'range-separator': "至", 'start-placeholder': "开始日期", 'end-placeholder': "结束日期" } },
        { form_item_prop: { label: '审核状态', prop: 'approveStatus' }, component_name: 'el-select', component_prop: { option_data: [{ value: '通过' }, { value: '驳回' },], option_prop: { value: 'value', label: 'value' } } },
      ],
      list_c: [
        { label: '编号', prop: 'id' },
        { label: '订单编号', prop: 'orderNo' },
        { label: '客户名称', prop: 'customer.name' },
        { label: '联系人', prop: 'customer.contact' },
        { label: '联系方式', prop: 'customer.phone' },
        { label: '金额合计', prop: 'totalAmount' },
        { label: '交货日期', prop: 'deliveryDate' },
        { label: '申请人', prop: 'applyUser.realName' },
        { label: '申请时间', prop: 'applyDate' },
        { label: '申请状态', prop: 'applyStatus' },
        { label: '审核人', prop: 'approveUser.realName' },
        { label: '审核时间', prop: 'approveDate' },
        { label: '审核状态', prop: 'approveStatus' },
      ],
      list_material_c: [
        { label: '编号', prop: 'id' },
        { label: '物料编码', prop: 'code' },
        { label: '物料名称', prop: 'name' },
        { label: '型号', prop: 'model' },
        { label: '规格', prop: 'specification' },
        { label: '单位', prop: 'unit' },
        { label: '单价', prop: 'price' },
        { label: '类型', prop: 'category.name' },
        { label: '备注', prop: 'remark' },
      ],
      list_q: {
        orderNo: null,
        customerName: null,
        deliveryStartDate: null,
        deliveryEndDate: null,
        deliveryAttr: [],
        deliveryMethod: null,
        applyUser: null,
        applyStartDate: null,
        applyEndDate: null,
        applyAttr: [],
        applyStatus: null,
        approveUser: null,
        approveStartDate: null,
        approveEndDate: null,
        approveAttr: [],
        approveStatus: null,
      },
      list_e: {
        customerId: null,
        customerName: null,
        deliveryDate: null,
        detailList: [],
        id: null,
        remark: null,
      },
      pager: {
        page: 1,
        limit: 10,
        total: 0
      },
      list_order_q: {
        name: null,
        contact: null,
        category: null
      },
      pager_order: {
        page: 1,
        limit: 10,
        total: 0
      },
    }
  },
}